<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>elementui共公列表</title>

    <!--引入 element-ui 的样式，-->
    <link rel="stylesheet" href="/admin/plugin/element-ui/index.css">
    <!-- 必须先引入vue，  后使用element-ui -->
    <script type="text/javascript" src="/admin/js-css/js/vue.min.js"></script>
    <!-- 引入element 的组件库-->
    <script type="text/javascript" src="/admin/plugin/element-ui/index.js"></script>

    <script type="text/javascript" src="/admin/plugin/element-ui/httpVueLoader.js"></script>

    <!--引入layui组件-->
    <link rel="stylesheet" href="/admin/plugin/layui/dist/css/layui.css" tppabs="http://res.layui.com/layui/dist/css/layui.css"  media="all">
    <script src="/admin/plugin/layui/dist/layui.js" charset="utf-8"></script>

    <script type="text/javascript" src="/admin/js-css/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/admin/js-css/js/mx1.0.js?v=1.1"></script>

    <style type="text/css">
        .el-form-item--mini.el-form-item, .el-form-item--small.el-form-item {
            margin-bottom: 3px;
        }
        .el-form-item--small .el-form-item__content, .el-form-item--small .el-form-item__label {
            padding-right: 0px;
        }
        .el-tooltip__popper{ max-width:20%; }
        .el-tooltip__popper{
            display: none;
        }

        .el-table{
            /*font-weight: bold;*/
            overflow: visible !important;
        }

        .layui-table-click {
            background-color:cadetblue !important;
            color:white;
        }

        ::-webkit-scrollbar {
            width: 6px;
            height: 10px;
            background-color: rgba(255, 255, 255, 0.1);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(144, 147, 153, .3);
            border-radius: 4px;
            cursor: pointer;
        }
        .layui-form-label {
            float: left;
            display: block;
            padding: 7px 1px;
            width: 100px;
            font-weight: 400;
            line-height: 14px;
            text-align: right;
        }

        /**输入框高度设置**/
        .layui-input, .layui-select, .layui-textarea {
            height: 30px;
            line-height: 30px\9;
        }
        /**按钮样式设置**/
        .layui-btn {
            height: 30px;
            line-height: 30px;
            font-size: 13px;
        }
        .layui-btn+.layui-btn {
            margin-left: 0px;
        }

        .layui-table, .layui-table-view {
            margin: 0px 0;
        }

        .changeLHight .el-form-item__label{
            line-height: 16px !important;
        }

        /**列表内容超出自动换行**/
        /*.layui-table-cell {
            height: auto;
            overflow:visible;white-space:normal;text-overflow:clip;
            word-break: break-all;
        }*/


        /* 列表样式修改*/
        /* 去掉最下面的那一条线 */
        .el-table::before {
            height: 0px;
        }

        /* 表格斑马自定义颜色 */
        .el-table__row.warning-row {
            background: #F1F1F1;
        }

        /* 合计颜色重置 */
        .el-table__footer-wrapper tbody td.el-table__cell {
            background: #fff;
        }

        table {
            border-color: black !important;
        }

        /** 改变边框颜色 */
        /* .el-table--border,
        .el-table--group {
            border: 1px solid #CCCCCC !important;
        } */

        /** 改变表格内竖线颜色 */
        .el-table--border td,
        .el-table--border th,
        .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
            border-right: 1px solid #CCCCCC !important;
        }

        /** 改变表格内行线颜色 */
        .el-table td,
        .el-table th.is-leaf {
            border-bottom: 1px solid #CCCCCC !important;
        }

        .el-table thead tr th {
            border-color: #8c939d;

        }
        .el-table th.el-table__cell{
            background: #f5f7fa;
        }
        .el-table thead {
            color: #606266;
        }
        .el-table td{
            font-size: 14px;
            background: #dfefff6b;
        }

        .el-divider--horizontal {
            margin: 12px 0px;
        }
    </style>

</head>
<body>
<div id="app"  >
    <div id="topdiv" ref="appdiv" >
        <div class="demoTable" style="padding: 5px;"  v-if="searchIsShow"  >
            <el-form :inline="true" size="mini"   ref="listSearch"   >
                <el-form-item    v-for="(item,index) in listSearch" :style="'display:'+item.isHide" >
                            <!--模糊搜索-->
                            <template  v-if="item.gs == '' || item.gs=='0' || item.gs=='4' || item.gs == '6'"  >

                                <template v-if="item.type == '0'">
                                    <el-input style="width:180px" v-model="searchInputDtos[item.key].value" :placeholder="item.lable"  clearable ></el-input>
                                </template>

                                <!--下拉框多选-->
                                <template v-if="item.type == '6' || item.type=='8'" >
                                    <el-select  multiple :placeholder="item.lable"
                                                filterable style="width:180px"
                                                v-model="searchInputDtos[item.key].values"  >
                                        <el-option value="" ></el-option>
                                        <el-option :value="vm.value"  :label="vm.showValue" v-for="vm in item.searchTypeForSelectDtos">{{vm.showValue}}</el-option>
                                    </el-select>
                                </template>

                                <template v-if="item.type == '11'" >
                                    <el-cascader :placeholder="item.lable" :ref="item.key" size="mini" @change="handleChange(item.key)" clearable
                                                  v-model="searchInputDtos[item.key].value"  :props="cascaderProps[item.key]"
                                    ></el-cascader>
                                </template>

                                <!--日期框-->
                                <template v-if="item.type == '1'">
                                    <el-date-picker value-format="yyyy-MM-dd" :placeholder="item.lable"
                                                    v-model="searchInputDtos[item.key].value"  style="width:180px"
                                                    type="date" >
                                    </el-date-picker>
                                </template>

                                <!--日期框时分秒-->
                                <template v-if="item.type == '5'">
                                    <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" :placeholder="item.lable"
                                                    v-model="searchInputDtos[item.key].value"  style="width:180px"
                                                    type="datetime" >
                                    </el-date-picker>
                                </template>

                            </template>

                            <!--大于小于输入框-->
                            <template  v-if="item.gs=='1'"  >
                                <template v-if="item.type == '0'">
                                    <el-input style="width:180px"  v-model="searchInputDtos[item.key].searchTypeForDateDto.start" :placeholder="'开始'+item.lable" ></el-input>
                                    <el-input style="width:180px"  v-model="searchInputDtos[item.key].searchTypeForDateDto.end" :placeholder="'结束'+item.lable" ></el-input>
                                </template>

                                <!--下拉框多选-->
                                <template v-if="item.type == '6' || item.type=='8'" >
                                    <el-select filterable style="width:180px" :placeholder="'开始'+item.lable"
                                               v-model="searchInputDtos[item.key].searchTypeForDateDto.start" >
                                        <el-option value="" ></el-option>
                                        <el-option :value="vm.value" :label="vm.showValue" v-for="vm in item.searchTypeForSelectDtos">{{vm.showValue}}</el-option>
                                    </el-select>

                                    <el-select  filterable style="width:180px" :placeholder="'结束'+item.lable"
                                                v-model="searchInputDtos[item.key].searchTypeForDateDto.end" >
                                        <el-option value="" ></el-option>
                                        <el-option :value="vm.value" :label="vm.showValue" v-for="vm in item.searchTypeForSelectDtos">{{vm.showValue}}</el-option>
                                    </el-select>
                                </template>

                                <template v-if="item.type == '11'" >
                                    <el-cascader  :ref="item.key" size="mini" @change="handleChange(item.key)" clearable :placeholder="'开始'+item.lable"
                                                  v-model="searchInputDtos[item.key].searchTypeForDateDto.start" :props="cascaderProps[item.key]"
                                    ></el-cascader>
                                    <el-cascader  :ref="item.key" size="mini" @change="handleChange(item.key)" clearable :placeholder="'结束'+item.lable"
                                                  v-model="searchInputDtos[item.key].searchTypeForDateDto.end" :props="cascaderProps[item.key]"
                                    ></el-cascader>
                                </template>

                                <!--日期框-->
                                <template v-if="item.type == '1'">
                                    <el-date-picker value-format="yyyy-MM-dd"  :placeholder="'开始'+item.lable"
                                                    v-model="searchInputDtos[item.key].searchTypeForDateDto.start" style="width:180px"
                                                    type="date" >
                                    </el-date-picker>
                                    <el-date-picker value-format="yyyy-MM-dd" :placeholder="'结束'+item.lable"
                                                    v-model="searchInputDtos[item.key].searchTypeForDateDto.end" style="width:180px"
                                                    type="date" >
                                    </el-date-picker>
                                </template>

                                <!--日期框时分秒-->
                                <template v-if="item.type == '5'">
                                    <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" :placeholder="'开始'+item.lable"
                                                    v-model="searchInputDtos[item.key].searchTypeForDateDto.start" style="width:180px"
                                                    type="datetime" >
                                    </el-date-picker>
                                    <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" :placeholder="'结束'+item.lable"
                                                    v-model="searchInputDtos[item.key].searchTypeForDateDto.end" style="width:180px"
                                                    type="datetime" >
                                    </el-date-picker>
                                </template>

                            </template>

                            <!--大于条件-->
                            <template  v-if="item.gs=='2'"  >
                                <template v-if="item.type == '0'">
                                    <el-input style="width:180px"  v-model="searchInputDtos[item.key].searchTypeForDateDto.start" :placeholder="item.lable"  ></el-input>
                                </template>

                                <!--下拉框多选-->
                                <template v-if="item.type == '6' || item.type=='8'" >
                                    <el-select filterable style="width:180px"  :placeholder="item.lable"
                                               v-model="searchInputDtos[item.key].searchTypeForDateDto.start" >
                                        <el-option value="" ></el-option>
                                        <el-option :value="vm.value" :label="vm.showValue" v-for="vm in item.searchTypeForSelectDtos">{{vm.showValue}}</el-option>
                                    </el-select>
                                </template>

                                <template v-if="item.type == '11'" >
                                    <el-cascader  :ref="item.key" size="mini" @change="handleChange(item.key)" clearable  :placeholder="item.lable"
                                                  v-model="searchInputDtos[item.key].searchTypeForDateDto.start" :props="cascaderProps[item.key]"
                                    ></el-cascader>
                                </template>

                                <!--日期框-->
                                <template v-if="item.type == '1'">
                                    <el-date-picker value-format="yyyy-MM-dd"  :placeholder="item.lable"
                                                    v-model="searchInputDtos[item.key].searchTypeForDateDto.start" style="width:180px"
                                                    type="date" >
                                    </el-date-picker>
                                </template>

                                <!--日期框时分秒-->
                                <template v-if="item.type == '5'">
                                    <el-date-picker value-format="yyyy-MM-dd HH:mm:ss"  :placeholder="item.lable"
                                                    v-model="searchInputDtos[item.key].searchTypeForDateDto.start" style="width:180px"
                                                    type="datetime" >
                                    </el-date-picker>
                                </template>

                            </template>

                            <!--小于条件-->
                            <template  v-if="item.gs=='3'"  >
                                <template v-if="item.type == '0'">
                                    <el-input style="width:180px"  v-model="searchInputDtos[item.key].searchTypeForDateDto.end"  :placeholder="item.lable"  ></el-input>
                                </template>

                                <!--下拉框多选-->
                                <template v-if="item.type == '6' || item.type=='8'" >

                                    <el-select  filterable style="width:180px"
                                                v-model="searchInputDtos[item.key].searchTypeForDateDto.end"  :placeholder="item.lable" >
                                        <el-option value="" ></el-option>
                                        <el-option :value="vm.value"  :label="vm.showValue" v-for="vm in item.searchTypeForSelectDtos">{{vm.showValue}}</el-option>
                                    </el-select>
                                </template>

                                <template v-if="item.type == '11'" >
                                    <el-cascader  :ref="item.key" size="mini" @change="handleChange(item.key)" clearable  :placeholder="item.lable"
                                                  v-model="searchInputDtos[item.key].searchTypeForDateDto.end" :props="cascaderProps[item.key]"
                                    ></el-cascader>
                                </template>

                                <!--日期框-->
                                <template v-if="item.type == '1'">
                                    <el-date-picker value-format="yyyy-MM-dd"  :placeholder="item.lable"
                                                    v-model="searchInputDtos[item.key].searchTypeForDateDto.end" style="width:180px"
                                                    type="date" >
                                    </el-date-picker>
                                </template>

                                <!--日期框时分秒-->
                                <template v-if="item.type == '5'">
                                    <el-date-picker value-format="yyyy-MM-dd HH:mm:ss"  :placeholder="item.lable"
                                                    v-model="searchInputDtos[item.key].searchTypeForDateDto.end" style="width:180px"
                                                    type="datetime" >
                                    </el-date-picker>
                                </template>

                            </template>

                        </el-form-item>

                <el-form-item v-if="JSON.stringify(listSearch) != '{}' " >
                    <span class="layui-btn" v-if="searchIsShow" onclick="vm.toolsSearch()">搜索</span>
                    <span class="layui-btn" v-if="searchIsShow" onclick="vm.f_search_advanced()">高级检索</span>
                    <span class="layui-btn" v-if="searchIsShow" onclick="vm.f_search_custom()">自定义搜索</span>
                    <span v-if="searchIsShow" class="layui-btn"  onclick="vm.searchShowHide()">收起</span>

                </el-form-item>
            </el-form>
        </div>

        <!-- 分割线-->
        <el-divider  v-if="searchIsShow"  ></el-divider>
        <el-row style="margin-bottom: 4px;" >
            <template v-for="item in buttons"  >
                <template v-if="!item.custom">
                    <el-button type="primary" style="margin-left: 1px;" v-if="item.type == 0" :item="JSON.stringify(item)" size="small" :icon="item.icon_path"  onclick="vm.f_add(this)">{{item.name}}</el-button>
                    <el-button type="primary" style="margin-left: 1px;" v-if="item.type == 1" :item="JSON.stringify(item)"  size="small" :icon="item.icon_path" up=true   onclick="vm.f_update(this)">{{item.name}}</el-button>
                    <el-button type="primary" style="margin-left: 1px;" v-if="item.type == 2" :item="JSON.stringify(item)" size="small"  :icon="item.icon_path"  onclick="vm.f_delete(this)">{{item.name}}</el-button>
                    <el-button type="primary" style="margin-left: 1px;" v-if="item.type == 3" :item="JSON.stringify(item)" size="small"  :icon="item.icon_path"  onclick="vm.f_post_confirm(this)">{{item.name}}</el-button>
                    <el-button type="primary" style="margin-left: 1px;"  v-if="item.type == 4" :icon="item.icon_path" size="small"   onclick="vm.f_set_list()">列表自定义</el-button>
                    <el-button type="primary" style="margin-left: 1px;"  v-if="item.type == 5" :icon="item.icon_path"  size="small"  onclick="vm.f_set_input()">录入自定义</el-button>
                    <el-button type="primary"  style="margin-left: 1px;" v-if="item.type == 6" :icon="item.icon_path"  size="small"  onclick="vm.f_set_order()">排序自定义</el-button>
                    <el-button type="primary"  style="margin-left: 1px;" v-if="item.type == 7" :icon="item.icon_path" size="small"  :item="JSON.stringify(item)"  onclick="vm.f_exp(this)">{{item.name}}</el-button>
                    <el-button type="primary"  style="margin-left: 1px;" v-if="item.type == 8" :icon="item.icon_path" size="small"  :item="JSON.stringify(item)"  onclick="vm.exportLocal(this)">{{item.name}}</el-button>

                </template>

                <template v-if="item.custom" >
                    <el-button type="primary" :icon="item.icon_path" style="margin-left: 1px;"  :item="JSON.stringify(item)" size="small"    @click="vm.callFunModule(item.custom_data_zygl_id)"  >{{item.name}}</el-button>
                </template>

            </template>

            <el-button v-if="!searchIsShow" style="margin-left: 0px;"  icon="el-icon-search" type="primary" size="small" @click="vm.searchShowHide()">搜索</el-button>

        </el-row>
    </div>

    <!-- 列表显示开始   -->
    <div>
        <el-table
                :data="tableData"
                ref="tipsTable"
                size="mini"
                :summary-method="getSummaries"
                :show-summary="showSummary"
                :height="tableHeight"
                @selection-change="handleSelectionChange"
                @row-click="rowClick"
                @sort-change="sortChange"
                :row-style="rowClass"
                @cell-dblclick="cellDblclick"
                border
                style="width: 100%;background: #ecf5ff;">
            <el-table-column
                    type="selection"
                    width="55">
            </el-table-column>

            <el-table-column v-for="(item,index) in listColumn"
                             :prop="item.field"
                             :label="item.title"
                             sortable="custom"
                             :show-overflow-tooltip="true"
                             :width="item.minWidth" >
                <template  slot-scope="scope">
                    <template  v-if="item.col_style!=undefined && item.col_style == '4'" >
                        <span @click="openImageurl(scope.row[item.field])" style='margin: 0 5px;' v-for="(src,index1) in scope.row[item.field].split(',')" ><img :src="src"   width="30px" height="30px" /></span>
                    </template>

                    <!--列表输入框进行编辑-->
                    <template v-if="item.is_list_edit == '0'" >
                        <el-input  size="mini" v-model="scope.row[item.field]"  ></el-input>

                    </template>

                    <template v-else >
                        <el-popover
                                placement="top-start"
                                width="300"
                                trigger="click" >
                            <div style="color:#800000">{{scope.row[item.field]}}</div>
                            <span slot="reference">{{scope.row[item.field]}}</span>
                        </el-popover>
                    </template>
                </template>

            </el-table-column>


            <el-table-column
                    v-if="buttons_rows_len > 0"
                    fixed="right"
                    label="操作"
                    :width="buttons_rows_len">
                <template slot-scope="scope">
                    <template v-for="(item,index) in buttons_rows" >
                        <el-button type="text" v-if="!item.custom"  @click="click_button_rows(item.type,scope.row,item)"   size="small">{{item.name}}</el-button>

                        <el-button type="text" v-if="item.custom" size="small"    @click="click_button_rows('custom',scope.row,item)"  >{{item.name}}</el-button>
                    </template>
                </template>
            </el-table-column>


        </el-table>

        <el-pagination
                background
                @current-change="handleCurrentChange"
                @size-change="sizeChange"
                layout="prev, pager, next,total,sizes"
                :total="total"
                :page-size="pageSize"
                :page-sizes="pageSizes"
                >
        </el-pagination>
    </div>

</div>
</body>
<script>
    var vm = new Vue({
        el:"#app",
        data:{
            tableId:top.data.tableId,
            listSearch: {}//默认查询的字段
            , searchInputDtos: {},
            buttons: [],
            buttons_rows:[],
            buttons_rows_len:0,
            mapzygl:{},
            listColumn:[],
            tableData: [],
            multipleSelection: [],
            selectData: [],//选择的数据集合
            cascaderProps:{},//三级联动动态加载
            parmsData:{},
            keycode:"",
            tableHeight:0,
            updateButtonItem:{},//修改按钮上面的item属性值
            //选择行变颜色参数
            chooseArr:[],
            selectRow: [],
            orderBy:"",
            //分页参数
            pageNumber:1,
            total:0,
            pageCount:0,
            pageSize:15,
            pageSizes:[10,15,20,50,100,200,500],
            //尾部是否显示合计
            showSummary:false,
            //尾部统计数据容器
            sums:["","合计："],
            //搜索栏是否显示
            searchIsShow:true,
        },
        created(){
            this.parmsData = getParams();
            if(this.parmsData.tableId != undefined){
                this.tableId = getTableId(this.parmsData.tableId);
                top.data.zygl_id = this.tableId;
                top.data.tableId = this.tableId;
            }

            let userstr = localStorage.getItem("user");
            if(userstr!=undefined && userstr!=""){
                let user = JSON.parse(userstr);
                let keycode = user.org_id;
                if(keycode!=undefined && keycode!=""){
                    this.keycode = keycode;
                }
            }
            this.getHead();
        },
        updated(){
            this.$refs.tipsTable.doLayout();
        },
        methods:{
            callFunModule(methodName){
                this[methodName]();
            },
            getSummaries(param){
                return this.sums;
            },
            //搜索栏显示与展开
            searchShowHide(){
                if(this.searchIsShow){
                    this.searchIsShow = false;
                }else {
                    this.searchIsShow = true;
                }
                this.$nextTick(function (){
                    //设置表格的高度
                    vm.setTableHeight();
                })

            },
            //表尾合计统计
            async getSummariesData(){
                let listother = {};
                copy(top.data.treeNodeObj,listother);
                copy({ids:top.data.param.ids},listother);
                top.data.listother = listother;
                let parm = {
                    orderBy: this.orderBy,
                    tableId: this.tableId,
                    searchInputDtos: vm.searchInputDtos,
                    other: listother,
                    pageNumber:""+this.pageNumber,
                    pageSize : ""+this.pageSize
                }
                const res = await postBody("/admin/api/DataManagementController/showSummaryMethod",parm);
                if(res.code == 0){
                    this.sums = [""," "];
                    return;
                }
                if(res.data == undefined || Object.keys(res.data).length == 0){
                    this.showSummary = false;
                    this.sums = [""," "];
                    return;
                }
                let columnSum = [""];
                let mapkeys = Object.keys(res.data);
                for(let a=0;a<this.listColumn.length;a++){
                    columnSum[a+1] = "";
                    let column = this.listColumn[a];
                    for(let c=0;c<mapkeys.length;c++){
                        if(column.field == mapkeys[c]){
                            columnSum[a+1] = res.data[mapkeys[c]];
                        }
                    }
                }
                this.showSummary = true;
                for(let a=0;a<columnSum.length;a++){
                    Vue.set(this.sums,a,columnSum[a]);
                }
            },
            //JS导出当前表格数据
            exportLocal(){
                // 列标题
                let str = '<tr>';
                for(let a=0;a<this.listColumn.length;a++){
                    str = str+"<td>"+this.listColumn[a].title+"</td>";
                }
                str = str+"</tr>";

                // 循环遍历，每行加入tr标签，每个单元格加td标签
                for(let i = 0 ; i < this.tableData.length ; i++ ){
                    str+='<tr>';
                    for(let a=0;a<this.listColumn.length;a++){
                        let field = this.listColumn[a].field;
                        let value = this.tableData[i][field];
                        // 增加\t为了不让表格显示科学计数法或者其他格式
                        if(value == undefined){
                            value = "";
                        }
                        str+=`<td style='mso-number-format:"\\@";' >${ value + '\t'}</td>`;
                    }
                    str+='</tr>';
                }
                // Worksheet名
                const worksheet = 'Sheet1'
                const uri = 'data:application/vnd.ms-excel;base64,';

                // 输出base64编码
                const base64 = s => window.btoa(unescape(encodeURIComponent(s)));

                // 下载的表格模板数据
                const template = `<html xmlns:o="urn:schemas-microsoft-com:office:office"
                    xmlns:x="urn:schemas-microsoft-com:office:excel"
                    xmlns="http://www.w3.org/TR/REC-html40">
                    <head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet>
                    <x:Name>${worksheet}</x:Name>
                    <x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet>
                    </x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]-->
                    </head><body><table>${str}</table></body></html>`;
                // 下载模板
                window.location.href = uri + base64(template);
            },
            //查看图片
            openImageurl(url){
                let openurl = "/admin/html/dataManagement/img_show.html?img="+url;
                top.f_layer_open_get(openurl,'80%','70%','',null,'图片查看',null);
            },
            //自定义排序
            sortChange(column){
                if(column.order == "ascending"){
                    this.orderBy = column.prop+" asc ";
                }else if(column.order == "descending"){
                    this.orderBy = column.prop+" desc ";
                }
                this.getListdata();
            },
            //当单元格被双击时触发
            cellDblclick(cell){
                if(Object.keys(this.updateButtonItem).length == 0){
                    this.f_view(cell.id);
                }else {
                    this.f_upex(this.updateButtonItem,cell.id);
                }
            },
            //每页记录数改变
            sizeChange(val){
                this.pageSize = val;
                this.getListdata();
            },
            //开始翻页
            handleCurrentChange(val){
                this.pageNumber = val;
                this.getListdata();
            },
            // 点击表格行
            rowClick(row) {
                this.$refs.tipsTable.toggleRowSelection(row);
            },
            // 多选高亮选中行
            rowClass({row, rowIndex}){
                if(this.selectRow.includes(rowIndex)){
                    return { "background-color": "#5aabff" }
                }
            },
            async toolsSearch(){
                let i = load();
                let other = this.searchInputDtos;
                const res = await postBody("/admin/api/DataManagementController/getCustomFields", {tableId: this.tableId,mapdata:top.data.treeNodeObj,other:other});
                layer.close(i);
                this.listColumn = res.data.listColumn;
                this.pageNumber = "1";
                this.getListdata();
            },
            //行内按钮点击后执行
            click_button_rows(type,rows,item){
                let vmvalue = "";
                let keyids = this.mapzygl.key_name.split(",");
                for(let i=0;i<keyids.length;i++){
                    if(i == keyids.length-1){
                        vmvalue = vmvalue+rows[keyids[i]];
                    }else {
                        vmvalue = vmvalue+rows[keyids[i]]+"/";
                    }
                }
                if(type == "1"){//修改
                    vm.f_upex(item,vmvalue);
                }else if(type == "2"){//删除
                    vm.f_delete_rows(item,vmvalue);
                }else if(type == "3"){//自定义
                    vm.f_post_confirm_rows(item,vmvalue);
                }else if(type == "custom"){//自定义方法接口
                    this.multipleSelection = [vmvalue];
                    vm.callFunModule(item.custom_data_zygl_id);
                }else if(type == "9"){//查看详情
                    this.f_view(vmvalue);
                }
            },
            handleSelectionChange(val) {
                this.chooseArr = val;
                this.multipleSelection = [];
                this.selectData = [];
                for(let a=0;a<val.length;a++){
                    try {
                        this.selectData.push(val[a]);
                        let vmvalue = "";
                        let keyids = this.mapzygl.key_name.split(",");
                        for(let i=0;i<keyids.length;i++){
                            if(i == keyids.length-1){
                                vmvalue = vmvalue+val[a][keyids[i]];
                            }else {
                                vmvalue = vmvalue+val[a][keyids[i]]+"/";
                            }
                        }
                        this.multipleSelection.push(vmvalue);
                    }catch (e){}
                }
            },
            async getHead(){
                let other = {};
                other["parentData"] = window.parent.vm.formInline;
                const res = await postBody("/admin/api/DataManagementController/getCustomFields", {tableId: this.tableId,mapdata:top.data.treeNodeObj,other:other});
                this.listColumn = res.data.listColumn;
                this.listSearch = res.data.listSearch;
                this.searchInputDtos = res.data.listSearch;
                this.mapzygl = res.data.mapzygl;
                //设置按钮
                vm.buttons = res.data.buttons;
                vm.buttons_rows = res.data.buttons_rows;
                vm.buttons_rows_len = res.data.buttons_rows_len;
                for(let a=0;a<vm.buttons.length;a++){
                    let btn = vm.buttons[a];
                    if(btn.type == "1"){
                        this.updateButtonItem = btn;
                        break;
                    }
                }
                //动态加载三级联动
                for(let itemKey in vm.listSearch){
                    let itemDto = vm.listSearch[itemKey];
                    if(itemDto.type == "11"){
                        vm.cascaderProps[itemDto.key] = {//三级联动动态加载
                            lazy: true,
                            checkStrictly : true,
                            async lazyLoad (node, resolve){
                                console.log("node:",node);
                                let pid = "0000";
                                if(node.level != '0'){
                                    pid = node.data.value;
                                }
                                const res = await listAdmin(itemDto.data_zygl_id,"id",{pid:pid});
                                let nodes = [];
                                let nodesList = res.data;
                                for(let c=0;c<nodesList.length;c++){
                                    nodes.push({value:nodesList[c][itemDto.select_v],label:nodesList[c][itemDto.select_text],level:1});
                                }

                                resolve(nodes);
                            }
                        }
                    }
                }

                //头部渲染完成后，开始设置表格的高度
                vm.$nextTick(function (){
                    //设置表格的高度
                    vm.setTableHeight();

                    //表尾是否显示合计
                    if(res.data.mapzygl.show_summary == "1"){
                        this.showSummary = true;
                    }
                });

                //列表默认查询参数
                if(this.parmsData.query != "0"){
                    this.getListdata();
                }

            },
            setTableHeight(h){
                if(h == undefined){
                    //设置表格的高度
                    vm.tableHeight = parseInt(document.documentElement.scrollHeight)-$("#topdiv").height()-40;
                }else {
                    console.log(h);
                    //设置表格的高度
                    vm.tableHeight = h;
                }
            },
            async getListdata(){
                let listother = {};
                try {
                    copy(top.data.treeNodeObj,listother);
                    copy({ids:top.data.param.ids},listother);
                    listother["parentData"] = window.parent.vm.formInline;
                    listother["other"] = window.parent.vm.other;
                }catch (e){}
                top.data.listother = listother;
                let parm = {
                    orderBy: this.orderBy,
                    tableId: this.tableId,
                    searchInputDtos: vm.searchInputDtos,
                    other: listother,
                    pageNumber:""+this.pageNumber,
                    pageSize : ""+this.pageSize
                }
                let i = load();
                const res = await postBody("/admin/api/DataManagementController/list",parm);
                layer.close(i);
                if(res.code == 0){
                    top.alert(res.msg);
                    return;
                }
                this.tableData = res.data.rows;
                this.total = parseInt(res.data.total);
                this.pageSize = parseInt(res.data.pageSize);
                this.pageCount = parseInt(res.data.pageCount);

                //表尾统计
                this.getSummariesData();

            },
            f_search_advanced() {
                let btn = {
                    btn: ['确定', '取消']
                    , yes: function (index, layero) {
                        //按钮【按钮一】的回调
                        let win = getTopIframe(layero);
                        let data = win.getData();
                        top.layer.closeAll();
                        vm.searchInputDtos = data;
                        vm.getListdata();
                    }
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                };

                top.f_layer_open_get("/admin/html/dataManagement/advancedRetrieval.html", "40%", "60%", function () {

                }, btn, "高级检索")
            },
            f_set_list() {
                let btn = {
                    btn: ['关闭']
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                };
                top.data.custom = "IS_LIST";
                top.f_layer_open_get("/admin/html/dataManagement/custom_list.html", "80%", "65%", function () {

                }, btn, "列表自定义")
            },
            f_set_order(){
                let btn = {
                    btn: ['保存','关闭'],
                    yes: function (index, layero){
                        var win = getTopIframe(layero);
                        let data = win.getData();
                        let i = top.layer.load();
                        postBody("/admin/api/SortCustomManagementController/saveCustomSortData", {list:data}, function (res) {
                            top.layer.close(i);
                            top.alert(res.msg);
                            vm.getListdata();
                        })
                    }
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                };
                top.f_layer_open_get("/admin/html/dataManagement/custom_order.html?tableId="+top.data.zygl_id, "60%", "65%", function () {

                }, btn, "排序自定义")
            },
            f_set_input() {
                let btn = {
                    btn: ['关闭']
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                };
                top.data.custom = "IS_INPUT";
                top.f_layer_open_get("/admin/html/dataManagement/custom_search.html", "80%", "65%", function () {

                }, btn, "录入自定义")
            },
            f_search_custom() {
                let btn = {
                    btn: ['关闭']
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                };
                top.data.custom = "IS_SEARCH";
                top.f_layer_open_get("/admin/html/dataManagement/custom_search.html", "80%", "65%", function () {

                }, btn, "自定义搜索")
            },
            async f_exp(o){
                let btn = {
                    btn: ['关闭']
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                };
                let item = $(o).attr("item");
                console.log("item_add:"+item);
                item = JSON.parse(item);
                let listother = {};
                try {
                    copy(top.data.treeNodeObj,listother);
                    copy({ids:top.data.param.ids},listother);
                }catch (e){}
                top.data.listother = listother;
                const res = await postBody("/admin/api/DataManagementController/expExcel",{searchInputDtos:vm.searchInputDtos,tableId:item.custom_data_zygl_id,other:listother});
                top.alert(res.msg);
                top.f_layer_open_get("/admin/html/dataManagement/expexcel-getpro.html", "60%", "25%", function () {

                }, btn, "数据导出")
            },
            async f_add(o) {

                let item = $(o).attr("item");
                console.log("item_add:"+item);
                item = JSON.parse(item);
                let ids = this.multipleSelection;

                let other = {
                    ids: "" + top.data.param.ids,
                    treeNode: top.data.treeNodeObj,
                    tableId: item.mapzygl.id,
                    input_id:item.mapzygl.input_id,
                    listother:top.data.listother,
                    type:"add",
                    parentData:window.parent.vm.formInline
                }
                top.data.other = other;
                top.data.param = other;
                top.data.buttonsItem = item.mapzygl;

                let btn = {
                    btn: ['新增', '保存','关闭']
                    , yes: function (index, layero) {
                        console.log(layero);
                        //按钮【按钮一】的回调
                        var win = getTopIframe(layero);
                        let issubmit = win.verification();
                        if (!issubmit) {
                            return false;
                        }
                        let data = win.getData();
                        // data.id = "";
                        let i = top.layer.load();
                        other.type = "add";
                        postBody("/admin/api/DataManagementController/add", {
                            tableId: item.mapzygl.id,
                            mapdata: data,
                            other: other
                        }, function (res) {
                            if(res.data != undefined){
                                vm.dataid = res.data.id;
                            }
                            top.layer.close(i);
                            top.alert(res.msg);
                            vm.getListdata();
                        })
                    }
                    , btn2: function (index, layero) {
                        console.log("保存按钮");
                        let win = getTopIframe(layero);
                        let issubmit = win.verification();
                        if (!issubmit) {
                            return false;
                        }
                        let data = win.getData();
                        let i = top.layer.load();
                        let purl = "/admin/api/DataManagementController/add";
                        /*if(vm.dataid != ""){
                            purl = "/admin/api/DataManagementController/update";
                            data.id = vm.dataid;
                            for (let o in data) { // 遍历对象 fon in 循环 o 为 对象的属性名
                                let str = JSON.stringify(data[o]);
                                if (str.substring(0, 1) != '[') {
                                    data[o]["id"] = vm.dataid;
                                }
                            }
                        }*/
                        other.type = "saveUpdate";
                        postBody(purl, {
                            tableId: item.mapzygl.id,
                            mapdata: data,
                            other: other
                        }, function (res) {
                            if(res.data != undefined){
                                vm.dataid = res.data.id;
                            }

                            top.layer.close(i);
                            top.alert(res.msg);
                            vm.getListdata();
                        })
                        //按钮【按钮二】的回调
                        return false;//开启该代码可禁止点击该按钮关闭
                    },btn3:function (index,layero){
                        console.log("关闭按钮");
                    }
                };

                let inputurl = "/admin/html/dataManagement/input.html";
                if (item.mapzygl.url != "") {
                    inputurl = item.mapzygl.url;
                }else {
                    if(item.is_input == "1"){
                        inputurl = "/admin/html/dataManagement/input.html";
                    }
                    if(item.is_input == "2"){
                        top.data.zygl_id = item.custom_data_zygl_id;
                        top.data.tableId = item.custom_data_zygl_id;
                        top.data.orderCol = "id";
                        inputurl = "/admin/html/dataManagement/list.html";
                    }
                    if(item.mapzygl.input_id != ""){
                        top.data.zygl_id = item.custom_data_zygl_id;
                        top.data.tableId = item.custom_data_zygl_id;
                        inputurl = "/admin/html/inputCustom/index.html";
                    }
                }

                top.data.input_id = item.mapzygl.input_id;
                let width = item.mapzygl.input_width;
                let height = item.mapzygl.input_height;
                const resq = await postBody("/admin/api/DataManagementController/queryDataForId",{tableId: item.mapzygl.id,other: other,ids:""+ids});
                if(resq.code == 0){
                    top.alert(resq.msg);
                    return;
                }
                top.f_layer_open_get(inputurl, width, height, function () {

                }, btn, "添加数据", resq.data);
            }
            ,f_view(ids){
                ids = ""+ids;
                let other = {
                    ids: "" + top.data.param.ids,
                    treeNode: top.data.treeNodeObj,
                    tableId: this.tableId,
                    input_id:"",
                    listother:top.data.listother,
                    type:"view"
                }

                top.data.other = other;
                top.data.param = other;
                if(top.data.buttonsItem != undefined){
                    top.data.buttonsItem.id = this.tableId;
                }
                postBody("/admin/api/DataManagementController/queryDataForId", {
                    ids: ""+ids,
                    tableId: vm.tableId,
                    other: other
                }, function (res) {
                    let btn = {
                        btn: ['关闭']
                        , btn2: function (index, layero) {
                            //按钮【按钮二】的回调
                            //return false 开启该代码可禁止点击该按钮关闭
                        }
                    };
                    let item = JSON.parse(res.msg);
                    let inputurl = "/admin/html/dataManagement/input.html";
                    if (item.url != "") {
                        inputurl = item.url;
                    }else {
                        if(item.is_input == "1"){
                            top.data.zygl_id = vm.tableId;
                            inputurl = "/admin/html/dataManagement/input.html";
                        }
                        if(item.is_input == "2"){
                            top.data.zygl_id = vm.tableId;
                            top.data.tableId = vm.tableId;
                            top.data.orderCol = "id";
                            inputurl = "/admin/html/dataManagement/list.html";
                        }
                        if(item.input_id != ""){
                            top.data.zygl_id = vm.tableId;
                            top.data.tableId = vm.tableId;
                            inputurl = "/admin/html/inputCustom/index.html";
                        }
                    }

                    top.data.input_id = item.input_id;
                    let width = item.input_width;
                    let height = item.input_height;
                    if(res.code == 0){
                        top.alert(res.msg);
                        return;
                    }
                    top.f_layer_open_get(inputurl, width, height, function () {

                    }, btn, "查看数据", res.data);
                })
            }
            ,f_upex(item,ids){
                ids = ""+ids;
                let other = {
                    ids: "" + top.data.param.ids,
                    treeNode: top.data.treeNodeObj,
                    tableId: item.mapzygl.id,
                    input_id:item.mapzygl.input_id,
                    listother:top.data.listother,
                    type:"update"
                }

                top.data.other = other;
                top.data.param = other;
                top.data.buttonsItem = item.mapzygl;
                postBody("/admin/api/DataManagementController/queryDataForId", {
                    ids: ids,
                    tableId: item.mapzygl.id,
                    other: other
                }, function (res) {
                    let btn = {
                        btn: ['确定', '取消']
                        , yes: function (index, layero) {
                            console.log(layero);
                            //按钮【按钮一】的回调
                            var win = getTopIframe(layero);
                            let issubmit = win.verification();
                            if (!issubmit) {
                                return;
                            }
                            let data = win.getData();
                            let mapdatasubmit = data;
                            mapdatasubmit.id = ids;
                            let i = top.layer.load();
                            postBody("/admin/api/DataManagementController/update", {
                                tableId: item.mapzygl.id,
                                mapdata: mapdatasubmit,
                                other: other
                            }, function (res) {
                                top.layer.close(i);
                                top.alert(res.msg);
                                vm.getListdata();
                            })
                        }
                        , btn2: function (index, layero) {
                            //按钮【按钮二】的回调
                            //return false 开启该代码可禁止点击该按钮关闭
                        }
                    };
                    let inputurl = "/admin/html/dataManagement/input.html";
                    if (item.mapzygl.url != "") {
                        inputurl = item.mapzygl.url;
                    }else {
                        if(item.is_input == "1"){
                            inputurl = "/admin/html/dataManagement/input.html";
                        }
                        if(item.is_input == "2"){
                            top.data.zygl_id = item.custom_data_zygl_id;
                            top.data.tableId = item.custom_data_zygl_id;
                            top.data.orderCol = "id";
                            inputurl = "/admin/html/dataManagement/list.html";
                        }
                        if(item.mapzygl.input_id != ""){
                            top.data.zygl_id = item.custom_data_zygl_id;
                            top.data.tableId = item.custom_data_zygl_id;
                            inputurl = "/admin/html/inputCustom/index.html";
                        }
                    }

                    top.data.input_id = item.mapzygl.input_id;
                    let width = item.mapzygl.input_width;
                    let height = item.mapzygl.input_height;
                    if(res.code == 0){
                        top.alert(res.msg);
                        return;
                    }
                    // res.data.other = other;
                    top.f_layer_open_get(inputurl, width, height, function () {

                    }, btn, "修改数据", res.data);
                })
            }
            , f_update(o) {
                if (this.multipleSelection.length != 1) {
                    top.alert("只能选择一条记录进行修改");
                    return;
                }

                let item = $(o).attr("item");
                item = JSON.parse(item);

                let ids = this.multipleSelection;
                this.f_upex(item,ids);
            },
            f_delete_rows(item,ids){
                console.log(item);
                layer.confirm('确定要永久删除吗？', {
                    btn: ['确定', '取消'] //可以无限个按钮
                }, function (index, layero) {
                    let other = {
                        ids: "" + top.data.param.ids,
                        treeNode: top.data.treeNodeObj,
                        tableId: item.mapzygl.id,
                        listother:top.data.listother
                    }
                    top.data.other = other;
                    postBody("/admin/api/DataManagementController/delete", {
                        ids: "" + ids,
                        tableId: item.mapzygl.id,
                        other: other
                    }, function (res) {
                        top.alert(res.msg);
                        vm.getListdata();
                        layer.close(index);
                    })
                }, function (index) {
                    //按钮【按钮二】的回调
                });
            }
            , f_delete(o) {
                let item = $(o).attr("item");
                item = JSON.parse(item);
                if (this.multipleSelection.length == 0) {
                    top.alert("请选择记录进行删除");
                    return;
                }
                let ids = this.multipleSelection;
                vm.f_delete_rows(item,ids);
            },
            f_post_confirm_rows(item,ids){
                if(item.is_confirm == "1"){
                    layer.confirm('确定要执行此操作吗？', {
                        btn: ['确定', '取消'] //可以无限个按钮
                    }, function (index, layero) {
                        layer.close(index);
                        vm.f_post_rows(item,ids);
                    }, function (index) {
                        //按钮【按钮二】的回调
                    });
                }else {
                    vm.f_post_rows(item,ids);
                }

            },
            f_post_confirm(o){
                let item = $(o).attr("item");
                item = JSON.parse(item);
                if(item.is_confirm == "1"){
                    layer.confirm('确定要执行此操作吗？', {
                        btn: ['确定', '取消'] //可以无限个按钮
                    }, function (index, layero) {
                        layer.close(index);
                        vm.f_post(o);
                    }, function (index) {
                        //按钮【按钮二】的回调
                    });
                }else {
                    vm.f_post(o);
                }

            }
            , f_post_rows(item,ids) {//自定义数据接口
                top.data.buttonsItem = item.mapzygl;
                if (item.is_input != 0) {
                    top.data.zygl_id = item.custom_data_zygl_id;
                    let param = {
                        treeNode: top.data.treeNodeObj,
                        ids: "" + ids,
                        tableId: item.custom_data_zygl_id,
                        mapdata:{searchInputDtos:vm.searchInputDtos,tableData:vm.tableData}
                    }
                    top.data.param = param;
                    let i = top.load();
                    postBody("/admin/api/DataManagementController/customGetFormData", param, function (res) {
                        top.layer.close(i);
                        if(res.code == "0"){
                            top.alert(res.msg);
                            return ;
                        }

                        let btn = {
                            btn: ['确定', '取消']
                            , yes: function (index, layero) {
                                //按钮【按钮一】的回调
                                var win = getTopIframe(layero);
                                let issubmit = win.verification();
                                if (!issubmit) {
                                    return;
                                }
                                let data = win.getData();
                                data.listother = top.data.listother;
                                data["searchInputDtos"] = vm.searchInputDtos;
                                let i = top.layer.load();
                                let psubmit = {
                                    treeNode: top.data.treeNodeObj,
                                    ids: "" + ids,
                                    tableId: item.custom_data_zygl_id,
                                    mapdata: data
                                }
                                top.data.param = param;
                                postBody("/admin/api/DataManagementController/customPostData", psubmit, function (res) {
                                    top.layer.close(i);
                                    top.alert(res.msg);
                                    vm.getListdata();
                                })
                            }
                            , btn2: function (index, layero) {
                                //按钮【按钮二】的回调
                                //return false 开启该代码可禁止点击该按钮关闭
                            }
                        };
                        let openurl = item.mapzygl.url;
                        if (openurl == "") {
                            if(item.is_input == "1"){
                                openurl = "/admin/html/dataManagement/input.html";
                            }
                            if(item.is_input == "2"){
                                top.data.zygl_id = item.custom_data_zygl_id;
                                top.data.tableId = item.custom_data_zygl_id;
                                top.data.orderCol = "id";
                                openurl = "/admin/html/dataManagement/list.html";
                            }

                        }

                        if(item.mapzygl.input_id != ""){
                            openurl = "/admin/html/inputCustom/index.html";
                            top.data.zygl_id = item.custom_data_zygl_id;
                            top.data.tableId = item.custom_data_zygl_id;
                            console.log("inputid",top.data.tableId)
                        }

                        top.data.input_id = item.mapzygl.input_id;
                        let width = item.mapzygl.input_width;
                        let height = item.mapzygl.input_height;
                        top.f_layer_open_get(openurl, width, height, function () {
                            top.data.zygl_id = top.data.tableId;
                        }, btn, "提交数据", res.data);
                    })

                } else {
                    let psubmit = {
                        treeNode: top.data.treeNodeObj,
                        ids: "" + ids,
                        tableId: item.custom_data_zygl_id,
                        mapdata:{searchInputDtos:vm.searchInputDtos,tableData:vm.tableData}
                    }
                    let i = top.layer.load();
                    postBody("/admin/api/DataManagementController/customPostData", psubmit, function (res) {
                        top.layer.close(i);
                        top.alert(res.msg);
                        vm.getListdata();
                    })
                }
            }
            , f_post(o) {//自定义数据接口
                var ids = this.multipleSelection;
                let item = $(o).attr("item");
                item = JSON.parse(item);
                top.data.buttonsItem = item.mapzygl;
                if (item.is_input != 0) {
                    top.data.zygl_id = item.custom_data_zygl_id;
                    let param = {
                        treeNode: top.data.treeNodeObj,
                        ids: "" + ids,
                        tableId: item.custom_data_zygl_id,
                        mapdata:{searchInputDtos:vm.searchInputDtos,tableData:vm.tableData}
                    }
                    top.data.param = param;
                    let i = top.load();
                    postBody("/admin/api/DataManagementController/customGetFormData", param, function (res) {
                        top.layer.close(i);
                        if(res.code == "0"){
                            top.alert(res.msg);
                            return ;
                        }

                        let btn = {
                            btn: ['确定', '取消']
                            , yes: function (index, layero) {
                                //按钮【按钮一】的回调
                                var win = getTopIframe(layero);
                                let issubmit = win.verification();
                                if (!issubmit) {
                                    return;
                                }
                                let data = win.getData();
                                data.listother = top.data.listother;
                                data["searchInputDtos"] = vm.searchInputDtos;
                                let i = top.layer.load();
                                let psubmit = {
                                    treeNode: top.data.treeNodeObj,
                                    ids: "" + ids,
                                    tableId: item.custom_data_zygl_id,
                                    mapdata: data
                                }
                                top.data.param = param;
                                postBody("/admin/api/DataManagementController/customPostData", psubmit, function (res) {
                                    top.layer.close(i);
                                    top.alert(res.msg);
                                    vm.getListdata();
                                })
                            }
                            , btn2: function (index, layero) {
                                //按钮【按钮二】的回调
                                //return false 开启该代码可禁止点击该按钮关闭
                            }
                        };
                        let openurl = item.mapzygl.url;
                        if (openurl == "") {
                            if(item.is_input == "1"){
                                openurl = "/admin/html/dataManagement/input.html";
                            }
                            if(item.is_input == "2"){
                                top.data.zygl_id = item.custom_data_zygl_id;
                                top.data.tableId = item.custom_data_zygl_id;
                                top.data.orderCol = "id";
                                openurl = "/admin/html/dataManagement/list.html";
                            }

                        }

                        if(item.mapzygl.input_id != ""){
                            openurl = "/admin/html/inputCustom/index.html";
                            top.data.zygl_id = item.custom_data_zygl_id;
                            top.data.tableId = item.custom_data_zygl_id;
                            console.log("inputid",top.data.tableId)
                        }

                        top.data.input_id = item.mapzygl.input_id;
                        let width = item.mapzygl.input_width;
                        let height = item.mapzygl.input_height;
                        top.f_layer_open_get(openurl, width, height, function () {
                            top.data.zygl_id = top.data.tableId;
                        }, btn, "提交数据", res.data);
                    })

                } else {
                    let psubmit = {
                        treeNode: top.data.treeNodeObj,
                        ids: "" + ids,
                        tableId: item.custom_data_zygl_id,
                        mapdata:{searchInputDtos:vm.searchInputDtos,tableData:vm.tableData}
                    }
                    let i = top.layer.load();
                    postBody("/admin/api/DataManagementController/customPostData", psubmit, function (res) {
                        top.layer.close(i);
                        top.alert(res.msg);
                        vm.getListdata();
                    })
                }
            }

        },
        watch:{
            chooseArr(data){
                this.selectRow = [];
                if (data.length > 0) {
                    data.forEach((item, index) => {
                        this.selectRow.push(this.tableData.indexOf(item));
                    });
                }
            }
        }
    });
</script>
</html>